package com.powernode.service;

import com.github.pagehelper.PageInfo;
import com.powernode.domain.Customer;
import com.powernode.dto.CustomerDto;

/**
*内容: 
*作者: 动力节点 武汉
*/
public interface CustomerService{


    int deleteByPrimaryKey(Integer id);

    int insert(Customer record);

    int insertSelective(Customer record);

    Customer selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Customer record);

    int updateByPrimaryKey(Customer record);

    /**
     * 分页查询客户数据
     * @param customerDto
     * @return
     */
    PageInfo<Customer> queryCustomerForPage(CustomerDto customerDto);

    /**
     * 转移客户
     * @param userId
     * @param customerIds
     */
    void changeCustomerUser(Integer userId, Integer[] customerIds);
}
